package Ranking;

import java.util.Comparator;


public class RCom implements Comparator<Restaurant1>{
 
    @Override
    public int compare(Restaurant1 o1, Restaurant1 o2) {
        return (o1.dis>o2.dis ? -1 : (o1==o2 ? 0 : 1));
    }
}